package com.guilin.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.guilin.common.annotation.Excel;
import com.guilin.common.core.domain.BaseEntity;

/**
 * 问卷回答详情对象 survey_response_detail
 * 
 * @author xiaoqi
 * @date 2025-06-24
 */
public class SurveyResponseDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 所属问卷回答记录ID */
    @Excel(name = "所属问卷回答记录ID")
    private Long responseId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 题目ID */
    @Excel(name = "题目ID")
    private Long questionId;

    /** 用户选择的选项值 */
    @Excel(name = "用户选择的选项值")
    private String optionValues;

    /** 文本回答 */
    @Excel(name = "文本回答")
    private String textAnswer;

    /** 数值回答 */
    @Excel(name = "数值回答")
    private Long numericAnswer;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setResponseId(Long responseId) 
    {
        this.responseId = responseId;
    }

    public Long getResponseId() 
    {
        return responseId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }

    public void setOptionValues(String optionValues) 
    {
        this.optionValues = optionValues;
    }

    public String getOptionValues() 
    {
        return optionValues;
    }

    public void setTextAnswer(String textAnswer) 
    {
        this.textAnswer = textAnswer;
    }

    public String getTextAnswer() 
    {
        return textAnswer;
    }

    public void setNumericAnswer(Long numericAnswer) 
    {
        this.numericAnswer = numericAnswer;
    }

    public Long getNumericAnswer() 
    {
        return numericAnswer;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("responseId", getResponseId())
            .append("userId", getUserId())
            .append("questionId", getQuestionId())
            .append("optionValues", getOptionValues())
            .append("textAnswer", getTextAnswer())
            .append("numericAnswer", getNumericAnswer())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
